Optimal. Leaf size=50 \[ \frac {(A b-a B) \log \left (a+b x^2\right )}{2 a^2}-\frac {\log (x) (A b-a B)}{a^2}-\frac {A}{2 a x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {446, 77} \begin {gather*} \frac {(A b-a B) \log \left (a+b x^2\right )}{2 a^2}-\frac {\log (x) (A b-a B)}{a^2}-\frac {A}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 446
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x^3 \left (a+b x^2\right )} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {A+B x}{x^2 (a+b x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {A}{a x^2}+\frac {-A b+a B}{a^2 x}-\frac {b (-A b+a B)}{a^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {A}{2 a x^2}-\frac {(A b-a B) \log (x)}{a^2}+\frac {(A b-a B) \log \left (a+b x^2\right )}{2 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 49, normalized size = 0.98 \begin {gather*} \frac {(A b-a B) \log \left (a+b x^2\right )}{2 a^2}+\frac {\log (x) (a B-A b)}{a^2}-\frac {A}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A+B x^2}{x^3 \left (a+b x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 47, normalized size = 0.94 \begin {gather*} -\frac {{\left (B a - A b\right )} x^{2} \log \left (b x^{2} + a\right ) - 2 \, {\left (B a - A b\right )} x^{2} \log \relax (x) + A a}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.32, size = 71, normalized size = 1.42 \begin {gather*} \frac {{\left (B a - A b\right )} \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {{\left (B a b - A b^{2}\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a^{2} b} - \frac {B a x^{2} - A b x^{2} + A a}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 56, normalized size = 1.12 \begin {gather*} -\frac {A b \ln \relax (x )}{a^{2}}+\frac {A b \ln \left (b \,x^{2}+a \right )}{2 a^{2}}+\frac {B \ln \relax (x )}{a}-\frac {B \ln \left (b \,x^{2}+a \right )}{2 a}-\frac {A}{2 a \,x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.04, size = 48, normalized size = 0.96 \begin {gather*} -\frac {{\left (B a - A b\right )} \log \left (b x^{2} + a\right )}{2 \, a^{2}} + \frac {{\left (B a - A b\right )} \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {A}{2 \, a x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.13, size = 46, normalized size = 0.92 \begin {gather*} \frac {\ln \left (b\,x^2+a\right )\,\left (A\,b-B\,a\right )}{2\,a^2}-\frac {A}{2\,a\,x^2}-\frac {\ln \relax (x)\,\left (A\,b-B\,a\right )}{a^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.71, size = 41, normalized size = 0.82 \begin {gather*} - \frac {A}{2 a x^{2}} + \frac {\left (- A b + B a\right ) \log {\relax (x )}}{a^{2}} - \frac {\left (- A b + B a\right ) \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________